libxl: disallow memory relocation when vNUMA is enabled
authorWei Liu <wei.liu2@citrix.com>
Mon, 16 Mar 2015 09:52:33 +0000 (09:52 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 18 Mar 2015 12:04:56 +0000 (12:04 +0000)
commita2b82221dc2c3f996250f9e465a3ce39cd4233c9
tree44024e3e3497be9beb3e971a8b1e43ba50987061
parent9b93317af2da195c57ca5aafe10b4edbe282ba6f
libxl: disallow memory relocation when vNUMA is enabled

Disallow memory relocation when vNUMA is enabled, because relocated
memory ends up off node. Further more, even if we dynamically expand
node coverage in hvmloader, low memory and high memory may reside
in different physical nodes, blindly relocating low memory to high
memory gives us a sub-optimal configuration.

Introduce a function called libxl__vnuma_configured and use it.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Cc: Ian Campbell <ian.campbell@citrix.com>
Cc: Ian Jackson <ian.jackson@eu.citrix.com>
Cc: Konrad Wilk <konrad.wilk@oracle.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxl/libxl_dm.c
tools/libxl/libxl_internal.h
tools/libxl/libxl_vnuma.c